package test;

public class UnixSort {
	public static void main(String[] args){
		String argument = ""; 
		for (String arg: args){
			argument = argument + arg + " ";
		}
		// Invoke and run 
		System.out.println(" Argumens : " + argument);
		
		long start = System.currentTimeMillis(); 
		invokeCMD ivk = new invokeCMD();
	    System.out.println(" Sort using Unix sort commands "); 
	    String cmd = "sort "+ argument ;
	    ivk.runCommand(cmd, false);
	    long end = System.currentTimeMillis(); 
	    System.out.println(" RUNNING TIME : "+ (end - start) + " milliseconds ");
	}
}
